package com.thoughtworks.mobinium;

public class MobiniumException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	public static MobiniumException ObjectNotFound(String name) {
		return new MobiniumException("Mobinium test driver was unable to find " + name);
	}
	
	public static MobiniumException FileNotFound(String message) {
		return new MobiniumException(message);
	}
		
	public static MobiniumException IOException(String message) {
		return new MobiniumException(message);
	}

	public static MobiniumException BadCommandType(String commandName) {
		return new MobiniumException("Bad command type name: " + commandName);
	}

	public static MobiniumException ClassNotFound(String className) {
		return new MobiniumException("Unable to find class: " + className);
	}

	public static MobiniumException CompilerException(String message) {
		return new MobiniumException("Lisp Compiler error - " + message);
	}

	public static MobiniumException RecognitionException(String message) {
		return new MobiniumException("DSL recognitin error - " + message);
	}

	private MobiniumException(String message) {
		super(message);
	}

}
